package com.project.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AccountMapper {
    @Insert("insert into product_sales_management.user(user_name,password,create_time,update_time)"+
    "values(#{username},#{password},now(),now())")
    public void addperson(String username, String password);

    @Insert("insert into product_sales_management.company(company_name,password,create_time,update_time)" +
            "values (#{companyname},#{password},now(),now())")
    public void addcompany(String companyname, String password);
}
